<html>  
<head>  
  <title>JS交互</title>  
  <meta http-equiv="content-type" content="text/html; charset=utf-8"/>  
  <script type="text/javascript">  
    function invokedByJava(param) {  
        document.getElementById("content").innerHTML = "Java has invoked JS function and returnd the data:"+param;  
    }  
  </script>  
</head>  
<body>  
  <p id="content"></p>  
  <p>  
  <input type="button" value="调用Java方法" onclick="window.stub.jsMethod('来至JS的参数');" />  
  <input type="button" value="调用alert" onclick="alert('hello')" />  
  </p>  
</body>  
</html>  